package com.gzx.plugin.website.mediator.controller;

import com.gzx.plugin.website.mediator.bo.GzxWebsiteMediatorAddOrEditBo;
import com.gzx.plugin.website.mediator.bo.GzxWebsiteMediatorOutQueryBo;
import com.gzx.plugin.website.mediator.bo.GzxWebsiteMediatorQueryBo;
import com.gzx.plugin.website.mediator.service.GzxWebsiteMediatorService;
import com.gzx.plugin.website.mediator.vo.GzxWebsiteMediatorOutVo;
import com.gzx.plugin.website.mediator.vo.GzxWebsiteMediatorVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.common.mvc.controller.BaseController;
import vip.xiaonuo.common.pojo.CommonResult;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/4/27 11:04
 */
@RestController
@RequestMapping("/website/mediator")
public class GzxWebsiteMediatorController extends BaseController<GzxWebsiteMediatorAddOrEditBo, GzxWebsiteMediatorVo, GzxWebsiteMediatorQueryBo, GzxWebsiteMediatorService> {
    public GzxWebsiteMediatorController(GzxWebsiteMediatorService baseService) {
        super(baseService);
    }


    @PostMapping("/vxvc")
    public CommonResult<List<GzxWebsiteMediatorOutVo>> pageListOut(@RequestBody GzxWebsiteMediatorOutQueryBo websiteMediatorOutQueryBo) {
        return CommonResult.data(baseService.pageListOut(websiteMediatorOutQueryBo));
    }
}
